@extends('admin.app')

<!-- @section('breadcrumb')
    <div class="bg-light lter b-b wrapper-md">
        <ol class="breadcrumb bg-light lter m-n no-padder">
            <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
            <li>业务管理</li>
            <li><a href="{{ admin_action('Business\OrganizationalUserManagementController@index') }}">机构用户管理</a></li>
            <li class="active">新增机构部门</li>
        </ol>
    </div>
@endsection -->

@section('content')
    <div class="panel panel-default">
        <div class="panel-heading font-bold">
          经纪人转投资人
        </div>
        <div class="panel-body">
            <form class="form-horizontal form-validation"
                  action="{{ admin_action('Business\SalesStatisticsController@brokerToUserSave') }}"
                  method="post">
                {{ csrf_field() }}	
                <label class="text-danger">*此操作将会把经纪人转成投资人,该经纪人及其下属客户将会转移到归属经纪人旗下</label>
                <div class="line line-dashed b-b line-lg"></div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">经纪人:</label>
                    <div class="col-lg-4">
                    	<label class="text-danger control-label">{{ $broker->userInfo->name }}</label>
                    	<input type="hidden" name="broker_id" value="{{ $broker->id }}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg"></div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">归属经纪人:	</label>
                    <div class="col-lg-4">
                        <input type="text" class="form-control" name="gsjjrname" value="{{ old('gsjjrname') }}"
                               placeholder="用户名 手机 邮箱" data-rule-required="true">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg"></div>
                <div class="form-group">
                    <div class="col-lg-4 col-lg-offset-2">
                        <a href="javascript:history.back()"
                           class="btn btn-default">返&nbsp;回</a>
                        <button type="submit" class="btn btn-primary">修改为投资人</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection 